package forum.server.persistence.old;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "postsroot")
public class PostRoot {
    
    protected List<PostTableEntry> posts;
    /**
     * 
     * @return the entries of the posts.
     */
    public List<PostTableEntry> getPosts() {
        if (this.posts == null) {
            this.posts = new ArrayList<PostTableEntry>();
        }
        return this.posts;
    }
    /**
     * 
     * @param sets the entries of the posts.
     */
    public void setPosts(List<PostTableEntry> posts){
        this.posts=posts;
    }
}
